package com.zhiyou.sep.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zhiyou.sep.model.UserModel;
import com.zhiyou.sep.service.UserService;

@Controller
@RequestMapping("/")
public class UserController {

	@Autowired
	UserService service;
	
	@RequestMapping(value="index.do",method=RequestMethod.GET)
	public String index(Model model){

		List<UserModel> list = service.queryUser();
		model.addAttribute("list", list);
		return "sep/index";
	}
	
	@RequestMapping(value="select.do",method=RequestMethod.POST)
	public String select(Model model){
		
		UserModel user = new UserModel();
		return "";
	}
}
